<?php App::uses('CakeTime', 'Utility');?>
<div class="empresas view">
	<div class="row">
		<div class="col-md-12">
			<div class="page-header">
				<h1><?php echo __('Empresa'); ?></h1>
			</div>
		</div>
	</div>

	<div class="row">

		<div class="col-md-3">
			<div class="actions">
				<div class="panel panel-default">
					<div class="panel-heading">Ações</div>
						<div class="panel-body">
							<ul class="nav nav-pills nav-stacked">
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-edit"></span>&nbsp&nbsp;Editar Empresa'), array('action' => 'edit', $empresa['Empresa']['id']), array('escape' => false)); ?> </li>
								<li><?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>&nbsp;&nbsp;Deletar Empresa'), array('action' => 'delete', $empresa['Empresa']['id']), array('escape' => false), __('Tem certeza de que deseja excluir # %s?', $empresa['Empresa']['id'])); ?> </li>
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp&nbsp;Listar Empresas'), array('action' => 'index'), array('escape' => false)); ?> </li>
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp&nbsp;Adicionar Empresa'), array('action' => 'add'), array('escape' => false)); ?> </li>
		
							</ul>
						</div><!-- end body -->
				</div><!-- end panel -->
			</div><!-- end actions -->
		</div><!-- end col md 3 -->

		<div class="col-md-9">			
			<table cellpadding="0" cellspacing="0" class="table table-striped">
				<tbody>
				<tr>
		<th><?php echo __('Id'); ?></th>
		<td>
			<?php echo h($empresa['Empresa']['id']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Nome'); ?></th>
		<td>
			<?php echo h($empresa['Empresa']['nome']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Cnpj'); ?></th>
		<td>
			<?php echo h($empresa['Empresa']['cnpj']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Telefone'); ?></th>
		<td>
			<?php echo h($empresa['Empresa']['telefone']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Email'); ?></th>
		<td>
			<?php echo h($empresa['Empresa']['email']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Site'); ?></th>
		<td>
			<?php echo h($empresa['Empresa']['site']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Representante'); ?></th>
		<td>
			<?php echo h($empresa['Empresa']['representante']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Data de cadastro'); ?></th>
		<td>
			<?php echo h(CakeTime::format($empresa['Empresa']['created'], '%d/%m/%Y  às  %H:%M:%S')); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Última atualização'); ?></th>
		<td>
			<?php echo h(CakeTime::format($empresa['Empresa']['modified'], '%d/%m/%Y  às  %H:%M:%S')); ?>
			&nbsp;
		</td>
</tr>
<!-- <tr>
		<th><?php //echo __('Endereços'); ?></th>
		<td>
			<?php //echo $this->Html->link($endereco['Endereco']['rua'], array('controller' => 'enderecos', 'action' => 'view', $endereco['Endereco']['id'])); ?>
			&nbsp;
		</td>
</tr>-->
<tr>
		<th><?php echo __('Rua'); ?></th>
		<td>
			<?php echo h($empresa['Endereco']['rua']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Número'); ?></th>
		<td>
			<?php echo h($empresa['Endereco']['numero']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Bairro'); ?></th>
		<td>
			<?php echo h($empresa['Endereco']['bairro']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Cep'); ?></th>
		<td>
			<?php echo h($empresa['Endereco']['cep']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Complemento'); ?></th>
		<td>
			<?php echo h($empresa['Endereco']['complemento']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Cidade'); ?></th>
		<td>
			<?php echo h($empresa['Cidade']['nome']);?>
			&nbsp;
		</td>
</tr>
				</tbody>
			</table>

		</div><!-- end col md 9 -->

	</div>
</div>

